package com.sdy.healthcode.biz.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.sdy.common.utils.DateUtil;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zzq
 * @since 2020-02-23
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "打卡信息")
public class HealthClockInDTO {

    @ApiModelProperty(value = "打卡用户", hidden = true)
    private Integer userId;

    @JsonFormat(pattern = DateUtil.DATE_FORMAT)
    @ApiModelProperty(value = "打卡日期", hidden = true)
    private Date clockDate;

    @ApiModelProperty(value = "健康状态", required = true, allowableValues = "健康,有发烧、咳嗽、乏力、肌肉酸痛、呼吸急促、腹泻等症状,其他")
    private String healthStatus;

    @ApiModelProperty(value = "是否接触湖北等地的人", required = true, allowableValues = "是,否")
    private String healthTouchSuspect;

    @ApiModelProperty(value = "是否接触确诊病人", required = true, allowableValues = "是,否")
    private String healthTouchInfect;

    @ApiModelProperty(value = "是否邻近确诊病人", required = true, allowableValues = "是,否")
    private String healthNearInfect;

}
